<template>
	<view>
		<view class="c1">
			<text class="c1-1">新简历</text>
		</view>
		<view class="c2">
			<view class="c2-item" v-for="v,k in data" @click="j1(v.id)">
				<view class="c2-1-1">
					<image  :src="v.user_resume.base.head_img"></image>
				</view>
				<view class="c2-1-2">
					<view class="c2-1-2-box">
						<view class="c2-1-2-1">{{v.user_resume.base.name}}</view>
						<view class="c2-1-2-2">{{v.company_name}}</view>
						<view class="c2-1-2-3">
							{{v.user_resume.base.sex_type_name}}&nbsp;&nbsp;|&nbsp;&nbsp;{{v.user_resume.base.edu_type_name}}&nbsp;&nbsp;|&nbsp;&nbsp;{{v.user_resume.base.city_name}}
						</view>
						<view class="c2-1-2-4">应聘职位：{{v.job_name}}</view>
						<view class="c2-1-2-4" style="padding: 10upx 0;">工作年限：{{v.user_resume.base.job_in_year}}年</view>
						<view class="c2-1-3">投递时间：{{v.created_at}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:[],
				p:1
			}
		},
		onLoad() {
		   this.f1(this.p);
		},
		onShow() {
			
		},
		onReachBottom(){
			console.log('refresh');
			this.p=this.p+1
			this.f1(this.p)
		},
		methods:{
			f1(p){
				this.get("/Index/UserCompany/get_has_deliver_resume",{page:p}).then(res=>{
				    if(res.data==false){
					   uni.showToast({
						title:"暂无更多内容",
						icon: 'none',
						duration: 1000
					   })
				    }
				    for(var k in res.data){
						//this.data[]=res.data[k] 
						this.data.push(res.data[k])
				    }
				});
			},
			j1(id){
				console.log(id)
				uni.navigateTo({
					url:"/pages/my/company_check_user_resume?id="+id
				})
			}
		}
		
		
	}
	
</script>

<style lang="scss" scoped>
	
.c1{
	height: 100upx;
	padding-top: 26upx;
}
.c1-1{ margin-left: 46upx;color: #3291F8;font-size: 30upx;padding-bottom: 26upx;border-bottom: 4upx solid #3291F8;}
.c2-item{
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	padding:30upx 30upx 20upx 30upx;
	border-bottom:20upx solid #F6F6F6;
}

.c2-1-1 image{width:148upx;height:148upx;border-radius: 50%;}
.c2-1-2{
	width: 100%;
	display: flex;
	margin-left: 28upx;
	justify-content: space-between;
	.c2-1-2-box{
		
	}
}
.c2-1-2-1{color: #101010;font-size: 32upx;margin-bottom: 10upx;}
.c2-1-2-2{color:#7B7B7B;font-size:26upx;margin-bottom: 10upx;}
.c2-1-2-3{color:#7B7B7B;font-size:26upx;margin-bottom: 10upx;}
.c2-1-2-4{color:#7B7B7B;font-size: 26upx;}

.c2-1-3{color:#7B7B7B;font-size: 26upx;}
</style>
